package com.zbkj.crmeb.enums;

/**
 * x
 *
 * @author cyz
 * @date 2021/5/19 18:58
 */
public enum MarkupRateTypeEnum {
    PLAT_平台加价率(1,"plat"),
    MERCHANT_商户加价率(2,"merchant");
    Integer type;
    String typeName;

    public Integer getType() {
        return type;
    }

    public String getTypeName() {
        return typeName;
    }

    private MarkupRateTypeEnum(Integer type, String typeName){
        this.type = type;
        this.typeName = typeName;
    }
    public static MarkupRateTypeEnum getTypeByCode(Integer type){
        if(type != null){
            for(MarkupRateTypeEnum val : MarkupRateTypeEnum.values()){
                if(val.type.equals(type)){
                    return val;
                }
            }
        }
        return null;
    }
}
